<?php 
namespace app\api\validate;

use think\Validate;

class CartChangeValidate extends BaseValidate
{
    protected $rule = [
        'cartId'  =>  'require|integer|checkCateId',

    ];   

    protected $message  =   [
        'cartId.require' => '购物车Id必须传递|200',
        'cartId.integer'   => '购物车Id格式不正确|201',
        'cartId.checkCateId'   => '购物车Id格式不正确|206' ,
        'goodsId.require' => '商品Id必须传递|200',
        'goodsId.integer'   => '商品Id格式不正确|201',
        'goodsId.checkGoodsId'   => '商品Id格式不正确|204',
        'goodsCount.require' => '商品数量必须传递|202',
        'goodsCount.integer'   => '商品数量格式不正确|203',  
    ];

   
}


?>